package day01.day02;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author feng
 * @Date 2021/9/22 6:39
 */
public class DayTest02 {
    public static void main(String[] args) {
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh-mm-ss");
        String s1 = format.format(date);
        System.out.println(s1);

    }
}
